﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MP3Ganizer.BusinessObject.Services.Configuration.Builders
{
    class DestinationBuilder : IConfigurationBuilder
    {
        public void SetInfo(DataToPersist.LocalConfiguration config, object newValue, object oldValue)
        {
            var newString = newValue as string;

            config.DestinationDirectory = newString;
        }


        public object GetInfo(DataToPersist.LocalConfiguration localConfiguration)
        {
            return localConfiguration.DestinationDirectory;
        }


        public void DeleteInfos(DataToPersist.LocalConfiguration _localConfiguration, object p)
        {
            throw new NotImplementedException();
        }
    }
}
